<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
    <head>
        <meta charset="UTF-8">
        <title>表格</title>
    </head>
    <body>
        <table border="1">
            <!--表格的标题-->
            <caption>授课安排表</caption>
            <tr>
                <!--列的标题-->
                <th>序号</th>
                <th>姓名</th>
                <th>课程</th>
            </tr>
            <tr>
                <td>1</td>
                <td>克晶</td>
                <td>基础</td>
            </tr>
            <tr>
                <td>2</td>
                <td>传奇</td>
                <td>数据库</td>
            </tr>
        </table>
        <hr>

        <!--cellspacing：单元格之间的间距-->
        <table border="1px " style="border-collapse: collapse">
            <caption>表格1</caption>
            <tr>
                <td>1-1</td>
                <td>1-2</td>
                <td>1-3</td>
                <td>1-4</td>
            </tr>
            <tr>
                <!--colspan :横着合并，跨列；-->
                <td colspan="2">2-1</td>
<!--                <td>2-2</td>-->
                <td>2-3</td>
                <!--rowspan:竖着合并，跨行-->
                <td rowspan="3">2-4</td>
            </tr>
            <tr>
                <td>3-1</td>
                <td>3-2</td>
                <td>3-3</td>
<!--                <td>3-4</td>-->
            </tr>
            <tr>
                <td>4-1</td>
                <td>4-2</td>
                <td>4-3</td>
<!--                <td>4-4</td>-->
            </tr>
        </table>
        <hr>


        <table border="1px" style="border-collapse: collapse">
            <caption>购物车</caption>
            <tr>
                <th>商品编号</th>
                <th>商品名称</th>
                <th>商品价格</th>
            </tr>
            <tr>
                <td>1</td>
                <td>小米Air</td>
                <td>5877</td>
            </tr>
            <tr>
                <td>2</td>
                <td>华为遥遥领先</td>
                <td>8877</td>
            </tr>
            <tr>
                <td>总价</td>
                <td colspan="2">10000</td>
            </tr>
        </table>
    </body>
</html>